AMD-IOMMU: fix initialization order (after 23863:9e0259239822)
authorJan Beulich <jbeulich@suse.com>
Tue, 27 Sep 2011 15:15:09 +0000 (16:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Sep 2011 15:15:09 +0000 (16:15 +0100)
commit84d9ddb1f26bb983c892d55696441f9bf81f1cd0
treedf530ed6bd4b955dd2b70c9ab41418aa9c603b86
parent47e2593cc8a6f99d4b621228bd847b0b2d7e5cb3
AMD-IOMMU: fix initialization order (after 23863:9e0259239822)

That original patch caused alloc_ivrs_mappings() to be called too
early, so things get moved back to where they were, just converting
the single call there to a loop over all IOMMUs.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/amd/iommu_detect.c
xen/drivers/passthrough/amd/iommu_init.c
xen/include/asm-x86/amd-iommu.h